package vip.finance.makemoney.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * etf历史估值记录
 * </p>
 *
 * @author yangbin
 * @since 2023-02-21
 */
@Getter
@Setter
@TableName("etf_record")
public class EtfRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 代码
     */
    @TableField("code")
    private String code;

    /**
     * 日期
     */
    @TableField("record_time")
    private String recordTime;

    /**
     * 净值
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 涨幅
     */
    @TableField("percent")
    private BigDecimal percent;

    /**
     * 预估值
     */
    @TableField("price_pre")
    private BigDecimal pricePre;

    /**
     * 场内值
     */
    @TableField("price_inside")
    private BigDecimal priceInside;

    /**
     * 预估溢价
     */
    @TableField("price_pre_diff")
    private BigDecimal pricePreDiff;

    /**
     * 场内溢价
     */
    @TableField("price_inside_diff")
    private BigDecimal priceInsideDiff;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
}
